<!-- /* Description for file.
 * 推荐评论增加
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/candidates
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0708
 * @lastmodified  张海杰2011年0708
 */
 -->



<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );

//print_r($customertypes);
?>
<script type="text/javascript">
  var message="<?php echo $message;?>";
  if(message!="")
  {
	window.opener.tablereload(message);
 	window.close();
  }
</script>
<script type="text/javascript">
function mycheck()
{
	var remark=$("#remark").val();
	if(remark=="")
	{
		alert("您还没有填写推荐评语");
		return false;
	}
	else
	{
		return true;
	}
}
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Projectmanagements');//一级目录
										   echo '>';echo __('项目进度管理');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('添加推荐评语',true));//当前操作地用span加粗?> 						  
		</td>

	</tr>
</table>
</div>

<div class="tabflex">
<fieldset><legend><?php echo __('Candidate  nominate')?></legend>
<?php echo $form->create('Candidate',array('action'=>'nominate','type'=> 'post','onsubmit'=>'return mycheck();'));?>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	style="text-align: left">
		<tr>
		<td width="50"></td>
		<td width="100">被推荐人:</td>
		<td>
		  <?php echo $nominates[0]["Resume"]["name"];?>
		</td>
		</tr>
		
		<tr>
		<td width="50"></td>
		<td width="100">推荐职位:</td>
		<td>
		  <?php echo $nominates[0]["Projectmanagement"]["projectCompanyPosition"];?>
		</td>
		</tr>
		<tr>
		<td width="50"></td>
		<td width="100" style="vertical-align:top;">推荐评语:</td>
		<td>
		 <?php  echo $form->textarea('remark',array('default'=>$nominates[0]["Candidate"]["remark"],'label'=>false,'class' => 'TextArea txtOut','id'=>'remark'));  ?>
		</td>
		</tr>
		<tr>
		<td width="50"></td>
		<td width="100">推荐人:</td>
		<td>
		  <?php echo $nominates[0]["User"]["username"];?>
		</td>
		</tr>
		<tr>
		<td width="50"></td>
		<td width="100">推荐时间:</td>
		<td>
		  <?php echo $showtime=date("Y-m-d H:i:s");?>
		</td>
		</tr>
</table>
</fieldset>
</div>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit'));?>  <!-- __('reset', true)取消-->
		<td width="100"><?php echo $form->button('取消',array('type'=>'reset','class'=>'oksubmit'));?>  <!-- __('reset', true)取消-->
		</td>
	</tr>
</table>
<?php echo $form->hidden('id',array('default'=>$nominates[0]["Candidate"]["id"]));?>
<?php echo $form->hidden('nominateTime',array('default'=>$showtime));?>
<?php echo $form->end();?>